<? include "../koneksi/koneksi.php";
//hapus
if($act=='hapus_seksi')
{ $hapus=mysql_query("delete from seksi where kd_seksi='$kd_seksi'");
header("location:index.php?act=seksi");
}
elseif($act=='hapus_pendidikan')
{ $hapus=mysql_query("delete from pendidikan where kd_pendidikan='$kd_pendidikan'");
header("location:index.php?act=pendidikan");
}
elseif($act=='hapus_jabatan')
{ $hapus=mysql_query("delete from jabatan where kd_jabatan='$kd_jabatan'");
header("location:index.php?act=jabatan");
}
elseif($act=='hapus_cv')
{ $hapus=mysql_query("delete from karyawan where nik='$nik'");
header("location:index.php?act=cv");
}
elseif($act=='hapus_karyawan')
{ $hapus=mysql_query("delete from karyawan where nik='$nik'");
header("location:index.php?act=karyawan");
}
elseif($act=='hapus_admin')
{ $hapus=mysql_query("delete from admin where id_admin='$id_admin'");
header("location:index.php?act=admin");
}
elseif($act=='hapus_bagian')
{ $hapus=mysql_query("delete from bagian where kd_bagian='$kd_bagian'");
header("location:index.php?act=bagian");
}
elseif($act=='hapus_divisi')
{ $hapus=mysql_query("delete from divisi where kd_divisi='$kd_divisi'");
header("location:index.php?act=divisi");
}
elseif($act=='hapus_instruktur')
{ $hapus=mysql_query("delete from instruktur where kd_instruktur='$kd_instruktur'");
header("location:index.php?act=instruktur");
}
elseif($act=='hapus_kelompok')
{ $hapus=mysql_query("delete from kelompok where kd_kelompok='$kd_kelompok'");
header("location:index.php?act=kelompok");
}
elseif($act=='hapus_schedule')
{ $hapus=mysql_query("delete from schedule where no_schedule='$no_schedule'");
header("location:index.php?act=schedule");
}
elseif($act=='hapus_training')
{ $hapus=mysql_query("delete from training where no_training='$no_training'");
header("location:index.php?act=training");
}
elseif($act=='hapus_det_training')
{ $hapus=mysql_query("delete from detail_training where no_det_training='$no_det_training'");
header("location:index.php?act=det_training&no_training=$no_training");
}
elseif($act=='hapus_tamu')
{ $hapus=mysql_query("delete from buku_tamu where id_tamu='$_GET[id_tamu]'");
header("location:index.php?act=buku_tamu");
}
elseif($act=='hapus_materi')
{ $hapus=mysql_query("delete from materi where kd_materi='$_GET[kd_materi]'");
header("location:index.php?act=materi");
}
?>
